home *** CD-ROM | disk | FTP | other *** search
- Path: news-1.csn.net!carbon!ouray!lnreeder
- From: lnreeder@ouray.cudenver.edu (Larry)
- Newsgroups: comp.lang.c++
- Subject: Re: G++ math question
- Date: 6 Apr 1996 04:22:44 GMT
- Organization: University of Colorado at Denver
- Message-ID: <4k4rik$jcg@carbon.cudenver.edu>
- References: <00001a81+0000b148@msn.com>
- NNTP-Posting-Host: ouray.cudenver.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
-
- Try linking in the math library, like this:
-
- g++ myprog.cc -o myprog -lm
-
- The "-lm" tells the compiler to link in the precompiled math library.
-
-
- -Larry.
-
-
-
-
- Roger Marlowe (RMarlowe@msn.com) wrote:
- : I wrote a program on MSVC 4 and I am trying to compile it with G++
- : in a UNIX envir.
- : G++ doesn't know what 'log()', 'pow()' or 'floor()' are even though
- : I have #included<math.h>.
-
- : Doesn't G++ have math routines or maybe they aren't installed on
- : this particular machine??
-
- : Thanks for your advice...
-
- : Roger
-
-